package com.feicheng.lanniao.controller.order;

import com.feicheng.lanniao.result.ResultInfo;
import com.feicheng.lanniao.service.order.OrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class OrderController {

    @Autowired
    private OrderService orderService;

    @GetMapping("/lanniao-user/order/list")
    public ResultInfo queryOrderListByClientId(Integer clientId,Integer page,Integer size){
        log.info("OrderController的queryOrderListByClientId方法进入,参数clientId为"+clientId);
        return   orderService.selectPayOrderListByClientId(clientId,page,size);
    }
}
